﻿//===============================================================================
//	CAskMissionBoxInfo
//	返回任务完成
//===============================================================================

#include "CAskMissionBoxInfo.h"
static uint32_t const mission_box_start = 836;
static uint32_t const mission_box_end = 836;

//-------------------------------------------------------------------------------
CAskMissionBoxInfo::CAskMissionBoxInfo(uint32_t uid, uint32_t pn)
	: BaseMessage(uid, pn)
{
	_safe_guard_begin;
	_safe_guard_end;
}

//-------------------------------------------------------------------------------
CAskMissionBoxInfo::~CAskMissionBoxInfo(void)
{

}

//-------------------------------------------------------------------------------
void CAskMissionBoxInfo::SetMissionBoxInfo(PlayerFixedIntegerArray * msState)
{
	_safe_guard_begin;

	Json::Value jv;
	jv.clear();
	for (uint16_t i = mission_box_start; i <= mission_box_end; ++i )
	{
		uint32_t value = msState->GetValue(i);
		jv.append(value);
	}

	m_jv["mState"] = jv;
	m_jv["ret"] = 0;

	_safe_guard_end;
}
